<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>UserRoleList</title>
</head>
<body>
<h2 class="green">User Role List</h2>
 <img src="../images/icons/user_add.png"/> <s:a href="userRole_add" label="test">Add new role</s:a>
<s:actionerror />
<s:fielderror />
<s:actionmessage />
<s:form>
	<table width="100%" cellpadding="3" cellspacing="1" class="oxyTable">
		<thead>
			<tr class="oxydarkBg">
				<th>Id</th>
				<th>Name</th>
				<th>Menu Items</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="userRoleList" id="userRole">
				<tr>
					<td valign="top" class="oxyliteBg"><s:property value="#userRole.id" /></td>
					<td valign="top" class="oxyWhiteCell">
						<s:url action="userRole_modify" id="myUrl">
							<s:param name="newUserRole.id" value="#userRole.id"/>
						</s:url>
						<s:a href="%{myUrl}">
							<s:property value="#userRole.name" />
						</s:a>
						
					</td>
					<td valign="top" class="oxyliteBg">
					<s:iterator value="#userRole.menuList" id="menu">
						<s:a href="%{locationHref}"><s:property value="menuTitle" /></s:a>
						<br />
					</s:iterator>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
</s:form>
</body>
</html>